﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yes.Application.User.Dto
{
    public  class PasswordEditDto
    {
        [Required(ErrorMessage = "请输入原密码")]
        public string Password { get; set; }

        [Required(ErrorMessage = "请输入新密码")]
        [StringLength(50, ErrorMessage = "新密码长度为6到50个字符", MinimumLength = 6)]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "请重复输入新密码")]
        [StringLength(50, ErrorMessage = "新密码长度为6到50个字符", MinimumLength = 6)]
        public string NewPassword2 { get; set; }
    }
}
